﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_filename")]
    [Serializable]
    public class FileName : ObjectBase<FileName>
    {
        [NotNull(""), Default(""), Column(Length = 200)]
        public String username { get; set; }

        [Default(""), Column(Length = 200)]
        public String filetitle { get; set; }

        [NotNull(""), Default(""), Column(Length = 200)]
        public String filename { get; set; }

        [NotNull(""), Default("img"), Column(Length = 50)]
        public String filetype { get; set; }

        [NotNull(""), Default(""), Column(Length = 200)]
        public String filepath { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(0)]
        public Int32 iswidth { get; set; }
    }
}
